home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-27 | 9.5 KB | 247 lines | [TEXT/KAHL] |
- --------------------------------------------------------------------------------
- Version History:
- --------------------------------------------------------------------------------
- v1.5 November 1995
- - please refer to the "What's new in v1.50…" document.
-
-
- v1.4 June 1995
- - all CDEF ID numbers increased by 1000 to adhere to Apple
- guidelines (IDs < 128 reserved).
-
- - source now compiles with Think 7, Symantec 8, CW 6 and
- MPW. Projects/makefiles for all. Precompiled headers
- are not needed.
-
- - FAT CDEFs can be built (Symantec or MPW).
-
- - DeviceLoop drawing is used where appropriate to better
- deal with multiple monitor situations.
-
- - 3D button now follows guidelines from Develop 15, but
- even looks great in b&w. For lovers of rectangular,
- gray buttons, there are compile switches to keep you
- happy.
-
- - all CDEFs have a subtle 3D effect on any color background.
- Goal was a 3D look even in white windows.
-
- - added a new Slider control.
-
- - many fixes, most relatively minor. Worst was a heinous,
- bonehead memory leak on non-colorQD machines - this only
- affected sliders, spinner & dateTime. Also am properly
- handling locked controlData handles and PixMapHandles
- (thanks Dave).
-
- - added some new demos to answer some questions I have
- been asked.
- --------------------------------------------------------------------------------
- v1.3 November 1994
- - first release with full source
- - will compile under Think 6 or Think 7
- - compiled without MacsBug names to decrease size.
- - tightened up code in cdef3D, had some bogus code
- that was not needed - sloppy copy 'n' paste.
-
- - added to demoCDEF program to demonstrate use of
- these CDEFs in a window as well as in a dialog
- and to add a couple of simple TabPanel demos.
- GroupBox
- --------
- - GroupBox has a new variation 4, "insetBox" to draw
- a simple box with the bottom/right edges in white
- and top/left edges in a gray shade taken from
- cFrameColor and GetGray().
- Spinner
- ------- - added new variation code, "horizArrows" to create
- arrows that point left/right instead of up/down.
- TabPanel
- -------- - LoWord of refCon can specify from 2 to 8 tabs per
- row. Default is 4 per row. HiWord of refCon is
- used as a 'notch' in the right corner.
-
- * NOTE * This is a change in the use of the refCon from
- previous versions of this control.
- Popup Menu
- ----------
- - Major enhancements to popup Menu CDEF
-
- o Now should be completely "plug compatible" with
- Apple's CDEF 63 - with one exception - it will
- not draw command-key equivalents.
-
- o Supports "dynamic" menus created via NewMenu() as
- long as they have been inserted into the menu
- list with InsertMenu()
-
- o Supports ICONS, reduced ICONS, SICN's and cicn's
-
- o Supports styled text titles.
-
- o Added 7 enhancements over CDEF 63, all triggered
- by adding a "pseudo variation code" to the title
- width value in the controlMax field.
-
- popupNoMark : Don't use a checkmark on current item.
- popupBlackSymbol: Always draw symbol in black.
- popupInsetFrame : Draws an inset popup frame.
-
- popupSymbolOnly : Draw popup symbol for "type-in menus"
- popupNoSymbol : Don't draw popup symbol at all.
- popupCenterText : Don't draw popup symbol, don't expand
- control width to that of the menu and
- center item text in control rect.
- popupIconOnly : Draw item Icon in a framed box.
-
- o popupNoMark, popupBlackSymbol and popupInsetFrame can
- be combined with others, but combinations of the last
- 4 are undefined.
-
- v1.2 September 1994
-
- - removed bogus UpdtDialog() call from demoCDEF.c - could
- cause a crash and wasn't needed.
- - minor fix to dimText.c.
- - fixed multiple monitor color problems in CDEFs that
- do not use offScreen drawing (3D Buttons, Popup,
- Tab Panel, Progress Bars & Group Box).
- - reworked some of the common routines for CDEFs in
- source folder "CDEF Common".
- - finally got around to checking the controls in a window
- as opposed to a dialog. Lots of minor tweaks to make
- things work correctly with FindControl & TrackControl.
- Details follow.
- - many enhancements to the demoCDEF program to show:
- : disabled Group Boxes
- : Fractional increment in Spinner controls
- : "Live" display of control values for Sliders
- : Reset of DateTime controls to current time.
- : Linking of a Spinner control to Progress bar.
-
- Spinner
- -------
-
- ** MAJOR CHANGE **
-
- - the meaning of the refCon field has changed:
- LOWORD is the increment value to use
- HIWORD is the DITL item number to update
-
- The refCon value is only checked when the control is first
- initialized. The HIWORD is only honored if the controlOwner
- is a dialog window.
-
- - Spinner control has a new variation to get "3D" arrows.
- Use varCode 2 for this. 3D arrows are colored as are
- system scroll bars with cTingeLight & cTingeDark.
-
- - Spinner control now behaves correctly with TrackControl.
- Part codes returned are :
- 2 = decrease value
- 3 = increase value
-
- - it is now possible to have a spinner control that adjusts
- by a fractional value. This requires some special code in
- your program (after all, the contrlValue field is a short).
- See demoDialog.c for an example.
-
- To do this, a struct is provided to let you store userData
- in the control's internal contrlData field - which is used
- by the control. See jimsCDEF.h for the struct.
- Tab Panel
- ---------
- - Tab Panel improved to handle multiple rows of tabs.
- It defaults to 4 tabs per row, with a maximum of 5
- rows. Variation code 2 added to force a single row.
- Variation code 1 will force System font.
- - added panelCmdTab() to panelAssist.c to allow cmd-Tab or
- cntl-Tab to cycle through the tabs.
- Sliders
- -------
- - Slider controls now behave correctly with Find/Track Control
- and will call an actionProc from SetCtlAction() if set.
- Part codes returned are :
- 1 = "thumb" adjusted value
- 2 = value was decreased
- 3 = value was increased
-
- - Slider controls : change in variation codes :
- 1 is now for "unfilled scale"
- 2 is now for "3D" effect
-
- Date & Time
- -----------
- - DateTime control values were changed to indicate what
- digits are currently highlighted. FindControl part codes
- returned are:
- 2 - Hours
- 3 - Minutes
- 4 - AM/PM
- 5 - TimeUp (never as control value)
- 6 - TimeDown (never as control value)
-
- 7 - date 1 (per control panel)
- 8 - date 2
- 9 - date 3
- 10 - DateUp (never as control value)
- 11 - DateDown (never as control value)
-
- - DateTime control now has 2 "pseudo variation codes":
- : if control Max is non-zero, 24 hour time is forced.
- : if control Min is non-zero, use 3D effect for arrows
- & text as with the Spinner control.
- Popup Menu
- ----------
- - Popup Menu control now recognizes variation 2 for 3D
- effects as in Group Boxes, Sliders and Spinner control.
-
- - as with Apple's CDEF 63, call TrackControl with the last
- parameter set to -1 to use this control in a regular
- window.
- Group Box
- ---------
- - now will disable and draw in gray.
-
- --------------------------------------------------------------------------------
-
- v1.1 August 1994 - added Tab Panel CDEF to collection (see description
- above).
- - all CDEFs use "embossed" text if used on a non-
- white background.
- - DateTime control now uses a title if supplied in
- control template.
- - PopUpMenu control draws color title per 'cctb'
- rather than 'mctb' and will "emboss" as with others.
- When the menu is "popped", the title colors are the
- same as the inverted menu item, rather than 'cctb'.
- colors. IMHO, this looks better.
- - Fixed a PenSize problem with 3D Buttons in Alerts
- with no 'actb' resource.
- - slider controls corrected to use proper gray when
- inactive.
- - slider controls now respond to clicks in the scale
- portion of the control.
- - variation 1 (was gray thumb) in slider controls now
- draws a "3D" version of the control. Shadow color
- is cTingeLight from 'cctb'.
- - removed a MAJOR memory leak in the slider controls.
- - Added a "barberpole" variation to the ProgressBar.
-
- - completely rewrote demo program to use the TabPanel
- control.
-
- --------------------------------------------------------------------------------
-
- v1.01 July 1994 - 3D Buttons now supports multi-line titles
- - GroupBox uses Control Max instead of refCon for
- true height of box (templates must be changed).
- - both slider controls have a correction to tracking
- logic when mouse is moved past end of slider. Now,
- tracking will not resume until mouse is moved back
- to the thumb.
-
- --------------------------------------------------------------------------------
-
- v1.0 June 1994 - first distribution
-